package com.example.hospital.respository;


import com.example.model.domain.entity.hospital.Department;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @Author juzipi
 * @Date 2021/5/5 19:50
 * @Info
 */
public interface DepartmentRepository extends MongoRepository<Department, String> {

    /**
     * 根据 hoscode，depcode 查询Department
     * @param hoscode
     * @param depcode
     * @return
     */
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);


}
